package org.example;

public class CardUtil {
    public String CardNum(int i) {
        String num = null;

        switch (i) {
            case 1:
                num = "3";
                break;
            case 2:
                num = "4";
                break;
            case 3:
                num = "5";
                break;
            case 4:
                num = "6";
                break;
            case 5:
                num = "7";
                break;
            case 6:
                num = "8";
                break;
            case 7:
                num = "9";
                break;
            case 8:
                num = "10";
                break;
            case 9:
                num = "J";
                break;
            case 10:
                num = "Q";
                break;
            case 11:
                num = "K";
                break;
            case 12:
                num = "A";
                break;
            case 13:
                num = "2";
                break;
            case 14:
                num = "大王";
                break;
            case 15:
                num = "小王";
                break;
        }
        return num;
    }

    public String CardType(int i2) {
        String type = null;
        switch (i2) {
            case 1:
                type = "♥️";
                break;
            case 2:
                type = "♠️";
                break;
            case 3:
                type = "♣️";
                break;
            case 4:
                type = "♦️";
                break;
            case 0:
                type = "🃏️";
                break;
        }
        return type;
    }
}

